﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace Examples.ReusedReplicatorActivity
{
    public sealed partial class Workflow
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            this.taskActivity = new Examples.ReusedReplicatorActivity.TaskActivity();
            this.stageActivity = new System.Workflow.Activities.ReplicatorActivity();
            this.whileStageExists = new System.Workflow.Activities.WhileActivity();
            this.onWorkflowActivated = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // taskActivity
            // 
            this.taskActivity.Name = "taskActivity";
            activitybind1.Name = "Workflow";
            activitybind1.Path = "stageData";
            // 
            // stageActivity
            // 
            this.stageActivity.Activities.Add(this.taskActivity);
            this.stageActivity.ExecutionType = System.Workflow.Activities.ExecutionType.Parallel;
            this.stageActivity.Name = "stageActivity";
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.stageActivity_IsComplete);
            this.stageActivity.UntilCondition = codecondition1;
            this.stageActivity.ChildInitialized += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.stageActivity_ChildInitialized);
            this.stageActivity.ChildCompleted += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.stageActivity_ChildCompleted);
            this.stageActivity.Completed += new System.EventHandler(this.stageActivity_Completed);
            this.stageActivity.Initialized += new System.EventHandler(this.stageActivity_Initialized);
            this.stageActivity.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // whileStageExists
            // 
            this.whileStageExists.Activities.Add(this.stageActivity);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.getNextStage);
            this.whileStageExists.Condition = codecondition2;
            this.whileStageExists.Name = "whileStageExists";
            activitybind3.Name = "Workflow";
            activitybind3.Path = "workflowId";
            // 
            // onWorkflowActivated
            // 
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "Workflow";
            this.onWorkflowActivated.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated.Name = "onWorkflowActivated";
            activitybind2.Name = "Workflow";
            activitybind2.Path = "workflowProperties";
            this.onWorkflowActivated.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated_Invoked);
            this.onWorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.onWorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // Workflow
            // 
            this.Activities.Add(this.onWorkflowActivated);
            this.Activities.Add(this.whileStageExists);
            this.Name = "Workflow";
            this.CanModifyActivities = false;

        }

        #endregion

        private TaskActivity taskActivity;

        private ReplicatorActivity stageActivity;

        private WhileActivity whileStageExists;

        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWorkflowActivated;
















    }
}
